import copy
from .base_clsfier import BaseClassifier


def build_clsfier(cfg):
    clsfier_cfg = copy.deepcopy(cfg)
    name = clsfier_cfg.pop('name')
    name = 'BaseClassifier'
    if name == 'BaseClassifier':
        return BaseClassifier(**clsfier_cfg)
    # TODO bulid multi-label classifier in the future
    else:
        return NotImplementedError
